Current Location: Home> Function Categories> filter_id

filter_id

Returns the id associated with a filter of a specific name
Name:filter_id
Category:Filter
Programming Language:php
One-line Description:Returns the ID number of the specified filter.

Definition and usage

filter_id() function returns the ID number of the specified filter.

If successful, the filter ID number is returned. If the filter does not exist, NULL is returned.

Example

 <?php
echo ( filter_id ( "validate_email" ) ) ;
?>

The output is similar:

 274

grammar

 filter_id ( filter_name )
parameter describe
filter_name

Required. Specifies the filter that is retrieved. Must be the filter name (not the filter ID name).

Please use the filter_list() function to get the names of all supported filters.

Similar Functions
Popular Articles